<template>
  <div>
    <div>--------------------</div>
    <div>子组件3</div>
    <a-input
      placeholder="利用总线传给父组件"
      v-model="dataCase"
      style="width:20%"
    />
    <div><a-button @click="onClick()">存入vuex</a-button></div>
  </div>
</template>

<script>
export default {
  name: "child3",
  data() {
    return {
      dataCase: ""
    };
  },
  methods: {
    onClick() {
      this.$store.commit("setDataCase", this.dataCase);
    }
  }
};
</script>

<style></style>
